package com.hxxy.wyp.petsLover.utils;

import org.apache.commons.lang3.StringUtils;

/**
 * @ClassName EncryptUtils
 * @Description TODO
 * @Author wyp
 * @Date 2023/1/7 11:57
 * @Version 1.0
 */
public class EncryptUtils {
    public static String encryptPassword(String userName, String password) {
        String salted = String.format("%s.%s", password, StringUtils.lowerCase(userName));
        return MD5Utils.md5(salted);

    }
}
